package com.yingxin.yx.framework.mybatisplus.generator;

import lombok.Data;

@Data
public class CodeConfig {

    public static final String NORMAL = "NORMAL";

    public static final String BILL = "BILL";

    public static final String ITEM = "ITEM";

    private String buildType = NORMAL;

    /**
     * 开发人
     */
    private String author = "";

    private String moduleName = "";

    private String package2 = null;

    private String package3 = null;

    /**
     * 表明
     */
    private String tableName = "";

    private String tablePrefix = "";

    private String entityVariable = "entity";

    private String foreignKey = "";

    private String billClass = "";

    private String billClassVariable = "";

    private String itemClass = "";

    private String itemClassVariable = "item";


    public static String firstLetterUpperCase(String str) {
        return str.substring(0, 1).toUpperCase() + str.substring(1);
    }

    public static String firstLetterLowerCase(String str) {
        return str.substring(0, 1).toLowerCase() + str.substring(1);
    }

    /**
     * billClass itemClass
     *
     * @param billClass
     */
    public void setBillClass(String billClass, String billClassVariable) {
        this.billClass = billClass;
        this.billClassVariable = billClassVariable;
    }

    public void setItemClass(String itemClass, String itemClassVariable) {
        this.itemClass = itemClass;
        this.itemClassVariable = itemClassVariable;
    }
}
